package com.modouyu.demo211.demo211.controller;

import com.modouyu.demo211.demo211.service.BlogProperties;
import com.modouyu.demo211.demo211.service.PostInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther: modouyu
 * @Date: 2018/7/9 08:39
 * @Description:
 * @Email: yangcb@daochunfin.com
 */
@Controller
public class HelloController {

    @Autowired
    private BlogProperties blogProperties;

    @Autowired
    private PostInfo postInfo;


    @RequestMapping(value = "hello")
    @ResponseBody
    public Object hello() {

        System.out.println(blogProperties.toString());
        System.out.println(postInfo.toString());
        return blogProperties;
    }


}
